Solar panels get energy from the sun for people to use. There are two types of solar panels, those that collect heat (thermal), and those that produce electricity (photovoltaic). Heat from solar panels is often used for space heating and for hot water.